package homework.day318.demo1;

public class Vehicle {
    private Double horsepower;

    private Double weight;

    public Double getHorsepower() {
        return horsepower;
    }

    public void setHorsepower(Double horsepower) {
        this.horsepower = horsepower;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Vehicle(){
        System.out.println("车辆正在运行");
    }

    public void travel(){
        System.out.println("车辆正在运行");
    }
    public void horn(String name){
        this.travel();
        System.out.println(name + "滴滴滴");
    }
    public void horn(int num){
        this.travel();
        System.out.println("滴了" + num + "下");
    }

}
